ExamPlay Light Logo
เข้าสู่ระบบ

Computer Science for IGCSE & O level - Programming (Section 12 - No. 42)

What happens if the value of a variable doesn't match any of the cases in a CASE statement, and there is no default clause?
The first case is automatically executed.
An error occurs and the program terminates.
The program continues to the next statement after the CASE block.
The program will go into an infinite loop.

คำอธิบาย

If no case matches and no default, execution proceeds to the statement after the CASE block.

ความคิดเห็น (0)

เข้าสู่ระบบเพื่อแสดงความคิดเห็น
โฆษณา
BrainBehindX Inc Logo
©2026; ขับเคลื่อนโดย BrainBehindX Inc